package com.gxa.modules.app.carousel.stoptreatment.controller;

import com.gxa.common.utils.Result;
import com.gxa.modules.app.carousel.stoptreatment.service.StopTreatmentService;
import com.gxa.modules.model.entity.hospital.SuspensionNotice;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "轮播图停诊通知")
@RequestMapping("/treatmentNotice")
@RestController
public class StopTreatmentController {

    @Autowired
    private StopTreatmentService stopTreatmentService;
    @GetMapping("/query")
    public Result selectNotice(){
        SuspensionNotice notice = stopTreatmentService.queryNotice();
        return new Result().ok(notice);
    }
}
